package model;

import java.util.ArrayList;
/**
 * this class is Campaign Pattern Model  which saves the Campaign Pattern Model fields data ,which extends AbstractModel
 * @author Moran
 *
 */
public class CampaignPatern extends AbstractModel{
	
	private int id=0;
	private int itemid=0;
	private int agefrom=0;
	private int ageto=0;
	private String area =null;
	private int costumeRrating=0;
	private int intrestLevel=0;
	private String message=null;
	private int status=0;
	private ArrayList<Permission> PermissionArry=null;//Permission to Campaign
	
	/**
	 * constructor
	 */
	public CampaignPatern(){//Constructor 
		PermissionArry=new ArrayList<Permission>();
	}
	/**
	 * get Permission Array
	 * @return ArrayList<Permission>
	 */
	public ArrayList<Permission> getPermissionArry() {
		return PermissionArry;
	}
	/**
	 * set Permission Array
	 * @param ArrayList<Permission> permissionArry
	 */
	public void setPermissionArry(ArrayList<Permission> permissionArry) {
		PermissionArry = permissionArry;
	}
	/**
	 * Add to Permission Array item(Permission)
	 * @param Permission Permission
	 */
	public void addPermissionArry(Permission Permission) {
		this.PermissionArry.add(Permission);
	}
	/**
	 * get Campaign Pattern id
	 * @return integer id
	 */
	public int getId() {
		return id;
	}
	/**
	 * set Campaign Pattern id
	 * @param integer id
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * get item id
	 * @return integer id
	 */
	public int getItemid() {
		return itemid;
	}
	/**
	 * set item id
	 * @param integer id
	 */
	public void setItemid(int itemid) {
		this.itemid = itemid;
	}
	/**
	 * get age range minimum
	 * @return integer age from
	 */
	public int getAgefrom() {
		return agefrom;
	}
	/**
	 * set age range minimum
	 * @param int agefrom
	 */
	public void setAgefrom(int agefrom) {
		this.agefrom = agefrom;
	}
	/**
	 * get age range maximum
	 * @return ageto
	 */
	public int getAgeto() {
		return ageto;
	}
	/**
	 * set age range maximum
	 * @param int ageto
	 */
	public void setAgeto(int ageto) {
		this.ageto = ageto;
	}
	/**
	 * get area of Campaign
	 * @return String
	 */
	public String getArea() {
		return area;
	}
	/**
	 * set area of Campaign
	 * @param userName
	 */
	public void setArea(String area) {
		this.area = area;
	}
	/**
	 * get Costumer Rating
	 * @return integer
	 */
	public int getCostumeRrating() {
		return costumeRrating;
	}
	/**
	 * set Costumer Rating
	 * @param int costumeRrating
	 */
	public void setCostumeRrating(int costumeRrating) {
		this.costumeRrating = costumeRrating;
	}
	/**
	 * get Costumer Interest Level
	 * @return int intrestLevel
	 */
	public int getIntrestLevel() {
		return intrestLevel;
	}
	/**
	 * set Costumer Interest Level
	 * @param int intrestLevel
	 */
	public void setIntrestLevel(int intrestLevel) {
		this.intrestLevel = intrestLevel;
	}
	/**
	 * get get Message
	 * @return String
	 */
	public String getMessage() {
		return message;
	}
	/**
	 * set Message
	 * @param userName
	 */
	public void setMessage(String message) {
		this.message = message;
	}
	/**
	 * get Status
	 * @return int
	 */
	public int getStatus() {
		return status;
	}
	/**
	 * set Status
	 * @param int status
	 */
	public void setStatus(int status) {
		this.status = status;
	}
}
